package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商实体类
 */
@TableName("t_supplier")
@ExcelTarget("supplier")
public class SupplierBean {
    //供货商id
    @TableId(value = "pk_supplierId",type = IdType.AUTO)
    @Excel(name ="编号")
    private Integer id;
    // 供应商名称
    @TableField("s_name")
    @Excel(name ="名称")
    private String name;
    // 负责人
    @TableField("s_cadre")
    @Excel(name ="负责人")
    private String cadre;
    // 负责人电话
    @TableField("s_phone")
    @Excel(name ="电话")
    private String phone;
    // 供货商地址
    @TableField("s_address")
    @Excel(name ="地址")
    private String address;
    // 供货商经营范围
    @TableField("s_range")
    @Excel(name ="经营范围")
    private String ranges;

    public SupplierBean() {
    }

    public SupplierBean(String name, String cadre, String phone, String address, String ranges) {
        this.name = name;
        this.cadre = cadre;
        this.phone = phone;
        this.address = address;
        this.ranges = ranges;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCadre() {
        return cadre;
    }

    public void setCadre(String cadre) {
        this.cadre = cadre;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRanges() {
        return ranges;
    }
    public String getRange() {
        return ranges;
    }
    public void setRanges(String ranges) {
        this.ranges = ranges;
    }
    public void setRange(String ranges) {
        this.ranges = ranges;
    }

    @Override
    public String toString() {
        return "SupplierBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cadre='" + cadre + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", Ranges='" + ranges + '\'' +
                "}\n";
    }
}
